package com.example.demo2;

public class Test {
    public static void main(String[] args) {
        MyRunnable tast=new MyRunnable();
        Thread t1=new Thread(tast);
        t1.start();
        for (int i = 0; i <10 ; i++) {
            System.out.println(Thread.currentThread().getName()+"="+i);
        }
    }
}
